\Example Programs

This folder holds an assortment of examples that are written and tested on
the Advanced D-Stick and PIC18F47K40.  Note that the configuration directives
in the programs are intended for the D-Stick and so enable Low-Voltage
Programming.  This will also work for the PIC18F47K40, but you might want
to disable LVP to avoid issues.

The schematic file for the LAB-X1 hardware (LABX1SCH.PDF) is also included in
this folder.  The LAB-X1 was used to develop and test the examples.

\COM Port Driver

This folder holds the inf file that serves as the driver for the MELABS
COM Port for serial communications between your computer and the EUSART
(RC6/RC7) on the D-Stick.  This file should already be installed with
the meProg software.  It's included here for unforseen issues that might
require you to manually install it.  To install it, right-click on the
.inf file (filetype: Setup Information) and select "Install".  There is
also a .cat file (filetype: Security Catalog) in the folder.  If the 
.cat file is moved or deleted, the driver may report that it is unsafe
to install.

\ICD Model

This folder holds the ICD Model file (18F47K40.icd) that is needed by
MicroCode Studio Plus to enable In-Circuit-Debugging for the PIC18F47K40.
Copy this file to the ICD Models folder within your MCSPX installation.
It is normal for Windows to ask for admin permission to approve this operation.

The ICD file uses the EUSART pins RC6/RC7 to communicate with MCSPX.  If
you wish to setup alternative pins for ICD, you can do so using the ICD
Model Creator in MCSPX.  The source file (18F47K40_ICD_PBPX.pbp) is included
to make the process more convenient.